package com.spark.lola;

import com.spark.lola.support.mvc.configuration.BaseLolaApplication;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author: DengYeJun
 * @Date: 2019/1/4 0004 17:19
 */
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.spark.lola.feign.service","com.spark.lola.feign"})
@SpringBootApplication
@EnableConfigurationProperties()
@ServletComponentScan
@EnableScheduling
public class HuaRongManageApplication extends BaseLolaApplication {
    public static void main(String[] args) {
        // 设置配置文件
        setExtendConfigSetting("huarong","huarong-manage");
        SpringApplication.run(HuaRongManageApplication.class, args);
    }
}